<include file="Public:top" /> 
{// 引入标签库 }
<tagLib name="html" />
<style>
input{margin-bottom:10p;}
#tb1 tr{ height:35px;}
</style>
<script>
var editor;
</script>
<div id="main" class="" >
<div class="content">
<div class="title">{$vo.sName}招租物业信息管理  [ <a href="__URL__">返回列表</a> ]</div>
<input name="htrq11" id="htrq11" type="hidden" value="{$vo.htrq1}" /><input name="htrq21" id="htrq21" type="hidden" value="{$vo.htrq2}" />
<form method="post" id="form2" name="form2">
  <table width="95%" cellpadding="3" cellspacing="3" id="tb1">
    <tr>
      <td class="tRight" >物业名称：</td>
      <td class="tLeft" ><input type="text" class="medium bLeft" name="wymc" value="{$vo.wymc}" title="ddfda" /></td>
      <td class="tLeft" >备注[双击下方进入编辑状态]:</td>
    </tr>
    <tr>
      <td class="tRight" >合同日期（起）：</td>
      <td class="tLeft" ><input type="text" id="htrq1" name="htrq1" class="medium bLeft" title="合同日期（起）" width="150"/></input></td>
      <td rowspan="9" valign="top" class="tLeft" id="dlg_remarks"><div id="div_remarks" style="height:300px; width:570px;">{$vo.remarks}</div></td>
    </tr>
    <tr>
      <td class="tRight">合同日期（止）：</td>
      <td class="tLeft"><input type="text" id="htrq2" name="htrq2" class="medium bLeft" title="合同日期（起）" width="150"/></input></td>
    </tr>
    <tr>
      <td class="tRight" >总招租金额（元）：</td>
      <td class="tLeft" ><input type="number" class="medium bLeft" name="zzzje" value="{$vo.zzzje}" /></td>
    </tr>
    <tr>
      <td class="tRight" >年招租金额（元）：</td>
      <td class="tLeft" ><input type="number" class="medium bLeft" name="nzzje" value="{$vo.nzzje}" /></td>
    </tr>
    <tr>
      <td class="tRight" >总人数：</td>
      <td class="tLeft" ><input type="number" class="medium bLeft" name="zrs" value="{$vo.zrs}" />人</td>
    </tr>
    <tr>
      <td class="tRight" >保安人数：</td>
      <td class="tLeft" ><input type="number" class="medium bLeft" name="bars" value="{$vo.bars}" />人</td>
    </tr>
    <tr>
      <td class="tRight" >清洁工人数：</td>
      <td class="tLeft" ><input type="number" class="medium bLeft" name="qjgrs" value="{$vo.qjgrs}" />人</td>
    </tr>
    <tr>
      <td class="tRight" >其他员工数：</td>
      <td class="tLeft" ><input type="number" class="medium bLeft" name="qtygs" value="{$vo.qtygs}" />人</td>
    </tr>
    <tr>
      <td class="tRight tTop">&nbsp;</td>
      <td class="tLeft">&nbsp;</td>
    </tr>
<!--    <tr>
      <td class="tRight">状态：</td>
      <td class="tLeft"><select class="small bLeft"  name="status">
        <option value="1">启用</option>
        <option value="0">禁用</option>
      </select></td>
      <td class="tLeft">&nbsp;</td>
    </tr>-->
    <tr>
      <td></td>
      <td class="center"><input type="hidden" name="dwid" value="{$vo.dwid}" >
        <input type="button" value="保 存" onclick="save()" class="small submit" />
        <!--<input type="reset" class="submit  small" value="清 空" />--></td>
      <td class="center">&nbsp;</td>
    </tr>
  </table>
</form>
</div>
</div>
<style>
.dlg{ height:520px; width:930px; top:2px; position:static; float:left;}
.dlg1{ height:500px; width:910px; float:left;}
</style>
<div class="hide" style="height:100%" id="hideDiv">
  <div id="tempDiv"></div>    
</div>

<include file="Public:footer" />
<script>
jQuery(function(){
	//获取学校列表,取得项目的相关信息，作ajax处理
	
	ff='remarks';
	if($('#div_'+ff).html().length<5){
		editor = showEditor(ff,0,300);
	}else{
		jQuery('#dlg_'+ff).one('dblclick',function(){
			editor = showEditor(ff,0,300);
		})
	}
	if($('#htrq11').val()){ 
		$('#htrq1').val(getLocalTime($('#htrq11').val()));}
	if($('#htrq21').val()){ 
		$('#htrq2').val(getLocalTime($('#htrq21').val()));}
	$('#htrq1').datebox(); 
	$('#htrq2').datebox(); 
})//jquery
		
function save(){
	if(editor)$('#remarks').val(editor.html());
    var inputs = $("#form2 :input").validator({ lang: 'zh',position: 'right left',offset: [-12, 0],message: '<div><em/></div>' });//检测表单
    if(inputs.data("validator").checkValidity()){
		var queryString = $('#form2').serialize();
		$.post('__URL__/update/',queryString,function(data){
			$.messager.show({
				title:'提示信息',msg:data.info,timeout:2000,showType:'slide'
			});
		},'json')	
	}	
}
</script>